<?php $this->beginContent('//layouts/main'); ?>

<?php

require_once 'Mobile_Detect.php';

	$detect = new Mobile_Detect;
			
	if ($detect->isMobile() ){


			$this->beginWidget('zii.widgets.CPortlet', array(
				'title'=>'Operations',
			));
			$this->widget('zii.widgets.CMenu', array(
				'items'=>$this->menu,
				'htmlOptions'=>array('class'=>'sidebar'),
			));
			$this->endWidget();
		
 
 ?>
		<div class="main">
			<?php echo $content; ?>
		</div><!-- content -->
	</div>
</div>
<?php $this->endContent(); 

    } 



 
	else
	
 { ?>
 <div class="row-fluid">
        <div class="span2">
         <?php
			$this->beginWidget('zii.widgets.CPortlet', array(
				'title'=>'Operations',
			));
			$this->widget('zii.widgets.CMenu', array(
				'items'=>$this->menu,
				'htmlOptions'=>array('class'=>'sidebar'),
			));
			$this->endWidget();
		?>
		</div><!-- sidebar span3 -->

 
 <div class="span10">
		<div class="main">
			<?php echo $content; ?>
		</div><!-- content -->
	</div>
</div>
      
<?php $this->endContent(); ?>
 

	<?php

 }
 
 ?>
 
 